package com.my.internetplus.dao;

import com.my.internetplus.model.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressDao {
    Address selectAddressByOrderId(long orderid);
    void addAddress(@Param("describe") String describe, @Param("name") String name,
                                @Param("userid") int userid,@Param("phone") int phone,
                                @Param("gpsaddr") String gpsaddr);
    List<Address> getAddressList(int userid);
    void updateAddress(@Param("name") String name,@Param("phone") String phone,
                       @Param("gpsAddr") String gpsAddr,@Param("describe") String describe,@Param("addid") int addid);
    void delectAddress(int addid);
}
